package review;

/**
 * @author 郝文雪
 * @date 2022/7/24 11:31
 * @Description Test
 */
public enum SingletonEnum {
    INSTANCE;
    public SingletonEnum getInstance(){
        return INSTANCE;
    }

    public static void main(String[] args) {
        SingletonEnum s1= INSTANCE.getInstance();
        SingletonEnum s2=INSTANCE.getInstance();
        System.out.println(s1==s2);
    }
}
